package com.treeroot.treenet.protocol.abs.tcp;

import com.treeroot.treenet.protocol.abs.tcp.session.TcpSession;

import java.util.function.Consumer;

/**
 * Create By TreeRoot
 * Create Time: 2023/12/18 03:40
 * Class Name: AbstractBaseTcpConnection
 * Description:
 * 抽象基础Tcp连接
 * @author TreeRoot
 */
public interface AbstractBaseTcpConnection {

    /**
     * TCP连接器 ---所有基于TCP的协议都通过此方法进行连接
     *
     * @param acceptConnectionConsumer 连接处理器
     */
     void handleRequest(Consumer<TcpSession> acceptConnectionConsumer);


}
